package com.elephant.core.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: hai
 * @Date: 2019/1/3 10:34
 */
public class UserRegisterEvent extends ApplicationEvent {

    private static final long serialVersionUID = 6290697939139203895L;

    private User user;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public UserRegisterEvent(Object source, User user) {
        super(source);
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}
